import { APP_ID, APP_VERSION } from './app';

const commonParams = {
  appid: APP_ID,
};

export const getCommonParams = () => {
	const openId = uni.getStorageSync('openId')
	const businessId = uni.getStorageSync('user') ? JSON.parse(uni.getStorageSync('user')).shopId : ""
  return {...{ openId, businessId }, ...commonParams}
}
export function setCommonParams(params: Object) {
  Object.assign(commonParams, params);
}

